#include "gyroscope_9axis.h"

void Gyroscope_9axis::setModel(string _model)
{
    model=_model;
}

void Gyroscope_9axis::setManufacturer(string _manufacturer)
{
    manufacturer=_manufacturer;
}

void Gyroscope_9axis::print ()
{
    cout<< "9轴陀螺仪"<<endl<<"a.型号："<< model<<endl<< "b.厂家："<< manufacturer<<endl;
}


void Gyroscope_9axis::save (string path)
{
    ofstream ofs;// 创建流对象
    ofs.open(path, ios::out | ios::app);

    ofs<< "9轴陀螺仪"<<endl<<"a.型号："<< model<<endl<< "b.厂家："<< manufacturer<<endl;

    ofs.close();
}
